.listView {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.listView > * {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  gap: 0.5rem;
}

.listView .event-list-entry {
  width: inherit;
  background-color: #f8f8f8;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.event-details {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 1rem;
  flex-grow: 1;
}

.listView .event-list-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.listView .event-list-entry.favorite-event {
  border-left: 4px solid #FF7F50;
  background-color: #fff8f6;
}

.listView .event-list-entry.favorite-event b {
  color: #FF7F50;
}

.listView .event-list-entry span,
.listView .event-list-entry b,
.listView .event-list-entry a {
  margin-right: 10px;
}

.listView .eventsGridDisplay {
  border: 0px;
  width: 100%;
}

.listView .eventsGridDisplay .eventCell {
  /* background: white; */
}

.event-date-fav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1rem;
  width: 190px;
}


.event-list-entry > header {
  display: flex;
  width: 100%;
  gap: 1rem;
  cursor: pointer;
  align-items: center; /* Ajout pour centrer verticalement */
}

.event-list-entry > header > * {
    padding: 10px;
}

.event-list-entry > header > .shortDate {
    min-width: 9rem;
    border-right: 1px solid #ccc;
    background: #eee;
}

.event-list-entry > header > .event-name-location {
    flex: 2;
}

.event-name-location {
  display: flex;
  align-items: center; /* Ajout pour centrer verticalement */
  gap: 0.5rem;
}

.event-list-entry > header > a {
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-name-location > b {
    margin-right: 1rem;
}

.event-name-location > span {
    font-size: smaller;
}

.event-banners {
  display: flex;
  flex: 1;
  justify-content: end;
  gap: 10px;
  align-items: center; /* Ajout pour centrer verticalement */
}

.event-banners.hide {
    visibility: hidden;
}

.event-banners * {
    height: max-content;
}

.event-list-entry > .show {
    display: flex;
}

.event-list-entry > article, .event-list-entry > footer {
    display: none;
}

.event-list-entry > article {
    border-top: 1px solid #ccc;
    padding: 1rem;
}

.event-list-entry > footer {
    border-top: 1px solid #ccc;
    background-color: #eee;
    padding: 0.5rem;
}

.event-list-entry .cfp-date {
  color: #666;
  font-style: italic;
  margin-left: 10px;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   ======================================== */

/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
    .listView {
        padding: 0.75rem;
    }
    
    .event-list-entry {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-list-entry span,
    .event-list-entry b,
    .event-list-entry a {
        margin-right: 0;
        margin-bottom: 0.25rem;
        display: block;
    }
}

/* ---------------------------------------- */

/* Tablets and large phones */
@media screen and (max-width: 768px) {
    .listView {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .listView h1 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .event-list-entry {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .event-list-entry span,
    .event-list-entry b,
    .event-list-entry a {
        margin-right: 0;
        margin-bottom: 0.25rem;
        display: block;
        width: 100%;
    }
    
    .event-list-entry a {
        word-break: break-all;
    }
    
    .event-list-header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ---------------------------------------- */

/* Standard mobile phones */
@media screen and (max-width: 660px) {
    .dcaContent {
        width: 100%;
    }

    .event-list-entry > header {
        flex-direction: column;
        gap: 0;
    }

    .event-list-entry > header > .shortDate {
        border: none;
    }
    
    .event-list-entry > header > a {
        text-align: left;
    }

    .event-banners {
        justify-content: start;
    }

    .event-banners.hide {
        display: none;
    }
}

/* ---------------------------------------- */

/* Small mobile phones */
@media screen and (max-width: 480px) {
    .listView {
        padding: 0.25rem;
    }
    
    .listView h1 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .listView .event-list-entry {
        padding: 0.5rem !important;
        border-radius: 2px;
        flex-direction: column !important;
        gap: 0.5rem;
        align-items: flex-start !important;
    }
    
    .listView .event-list-entry > .event-list-header,
    .listView .event-list-entry > a,
    .listView .event-list-entry > span {
        display: block !important;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.25rem;
    }
    
    .listView .event-list-entry a {
        word-break: break-all;
    }
    
    .listView .event-list-entry img {
        max-width: 100%;
        height: auto;
    }
    
    .listView .event-list-header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.event-list-entry a:hover {
  text-decoration: underline;
}
